package com.hmz.backend.controller.friend;

import cn.hutool.json.JSONObject;
import com.hmz.backend.service.friend.GetFriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetFriendController {
    @Autowired
    private GetFriendService getFriendService;
    @GetMapping("/getfriend")
    private JSONObject getfriend(@RequestParam int userId){
        System.out.println("查询好友列表接口调用！");
        return getFriendService.getFriendList(userId);
    }
}
